<!-- 职位创建模态框 -->
<div>
    <div class="modal-header">
        <h5 class="modal-title">创建职位
            <button type="button" class="close" aria-hidden="true" ng-click="cancel()">&times;</button>
        </h5>
    </div>
    <div class="modal-body">
        <div class="form-group ">
            <label for="role_type" class=" control-label" style="font-size: 12pt">TYPE</label>
            <input type="text" class="form-control" id="role_type"
                   onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" ng-model="role.type">
        </div>
        <div class="form-group">
            <label for="role_name" class=" control-label" style="font-size: 12pt">名称</label>
            <input type="text" class="form-control" id="role_name" ng-model="role.name">
        </div>
        <div class="form-group">
            <label for="role_desc" class="control-label" style="font-size: 12pt">简述</label>
            <input type="text" class="form-control" id="role_desc" ng-model="role.description">
        </div>
        <div class="form-group">
            <div class="checkbox">
                <label style="font-size: 12pt">
                    <input type="checkbox" ng-model="role.available">是否可用
                </label>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" ng-click="create()">
            创建
        </button>
        <button class="btn btn-warning" ng-click="cancel()">
            取消
        </button>
    </div>
</div>